package com.kmxd.ams.app.event.efile.command;

import com.kmxd.ams.app.convert.DocConvertUtil;
import com.kmxd.ams.client.event.efile.AttachmentConvertEvent;
import com.kmxd.ams.client.oss.IEfileRecordSvc;
import com.kmxd.ams.client.oss.IOssAttachmentSvc;
import com.kmxd.ams.client.system.ISysConfigSvc;
import com.kmxd.ams.core.oss.template.OssTemplate;
import com.kmxd.ams.infra.system.mapper.SysFondsMapper;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.redisson.api.RedissonClient;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * 电子文件转换
 *
 * @author ZuoLG
 */
@Slf4j
@Component
@AllArgsConstructor
public class AttachmentConvertCmd {
  private final SysFondsMapper sysFondsMapper;
  private IEfileRecordSvc efileSvc;
  private IOssAttachmentSvc ossAttachmentSvc;
  private OssTemplate ossTemplate;
  private ISysConfigSvc sysConfigSvc;
  private DocConvertUtil convertUtil;
  private final RedissonClient redissonClient;

  /** 电子文件转换 */
  @Transactional(rollbackFor = Exception.class)
  public void efileConvert(AttachmentConvertEvent event) throws Exception {
    log.debug("docIds: {} ", event.getReq().toString());
  }

}
